feat(Segment membership inspection): Add identifier search to the segment members endpoint#7866
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Docker builds report
|
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Failed testsfirefox › tests/segment-test.pw.ts › Segment test 1 - Create, update, and manage segments with multivariate flags @oss Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/segment-membership-read-endpoint #7866 +/- ##
=========================================================================
- Coverage 98.60% 98.59% -0.01%
=========================================================================
Files 1476 1475 -1
Lines 57832 57527 -305
=========================================================================
- Hits 57026 56721 -305
Misses 806 806 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…s endpoint
Add an optional `q` query param to GET /projects/{id}/segments/{id}/members
that filters returned members by a case-insensitive substring of their
identifier, applied across the whole segment-matching set (in the ClickHouse
WHERE, before ORDER BY/LIMIT) rather than within a page.
The members action now fetches the segment by pk directly instead of via
get_queryset(), which applies the segment-list `q` (segment-name search) and
would otherwise filter the segment out when `q` is used to search members.
beep boop
54b5694 to
4d2d373
Compare
Zaimwa9
left a comment
There was a problem hiding this comment.
This looks good to me. One non-blocking comment would be that I wonder whether we could find a more elegant way to deal with this workaround but that's really NIT and not worth spending too much time on it imo
67c44d3
into
feat/segment-membership-read-endpoint
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Follow-up to #7861. Adds an optional
qquery param to the segment members endpoint so the matched identities can be searched by identifier.GET /api/v1/projects/{id}/segments/{id}/members?environment={env_id}&q={term}How did you test this code?
Added integration/unit tests. Will be tested along with #7864.